
#define PORT 27000
#define WM_SOCKET WM_USER+2
#include <winsock2.h>
#pragma once
class CGlobalSocket
{
private:
	SOCKET sClient;
	sockaddr_in servAdd;
	CString sServAdd;
public:
	//Propery
	SOCKET getSockClient();
	sockaddr_in getSockAddr();
	CString getServerAddress();
	void setServerAddress(CString serverAddress);
	int getWMSOCKET();
	//
	CString initSocket(CString serverAddress);
	bool closeSocket();
	CString connectToServer(CString serverAddress);
	
	CGlobalSocket(void);
	~CGlobalSocket(void);
};
